package com.zxs.simple.controller;

import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.tags.Param;

@RequestMapping("/zxs")
@RestController
public class XSSTestController {


    @GetMapping("/xss-string")
    public Object xssFormTest(String value) {
        System.out.println(value);
        return value;
    }

    @PostMapping("/xss-json")
    public Object xssJsonTest(@RequestBody Param param ) {
        return param;
    }

    @PostMapping("/noxss-json")
    public Object noxssJsonTest(@RequestBody Param param ) {
        return param;
    }
}
